package com.egg.logger.entity.access;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户行为表
 * </p>
 *
 * @author east
 * @since 2021-09-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "logger_access")
@ApiModel(value = "LoggerAccess对象", description = "访问表")
public class Access extends BaseEntity {


    @ApiModelProperty(value = "用户ID")
    @TableField(value = "user_id")
    private Long userId;

    @ApiModelProperty(value = "客户端IP")
    @TableField(value = "client_ip")
    private String clientIp;

    @ApiModelProperty(value = "服务器IP")
    @TableField(value = "server_ip")
    private String serverIp;

    @ApiModelProperty(value = "方法")
    @TableField(value = "method")
    private String method;

    @ApiModelProperty(value = "路径")
    @TableField(value = "path")
    private String path;

    @ApiModelProperty(value = "请求头")
    @TableField(value = "headers")
    private String headers;

    @ApiModelProperty(value = "参数")
    @TableField(value = "parameter")
    private String parameter;


}
